<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <title></title>
        <meta charset="utf-8">
        <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <link rel="stylesheet" href="css/fonts/font-awesome.min.css">
        <link rel="stylesheet" href="css/ui-box.css">
        <link rel="stylesheet" href="css/ui-base.css">
        <link rel="stylesheet" href="css/ui-color.css">
        <link rel="stylesheet" href="css/appcan.icon.css">
        <link rel="stylesheet" href="css/appcan.control.css">

    </head>
    <body class="um-vp " ontouchstart>
        <div id="page_0" class="up ub ub-ver bc-bg" tabindex="0">
            <!--header开始-->
            <div id="header" class="uh bc-text-head ub bc-head">
                <div class="nav-btn" id="nav-left">
                    <div class="ub-img  icon-back umw2 umh3 "></div>
                </div>
                <h1 class="ut ub-f1 ulev-3 ut-s tx-c" tabindex="0">商户位置</h1>
                <div class="nav-btn nav-bt" id="nav-right"></div>
            </div>
            <!--header结束--><!--content开始-->
            <div id="content" class="ub-f1 tx-l ub">

            </div>
            <!--content结束-->

        </div>
        <script src="js/appcan.js"></script>
        <script src="js/appcan.control.js"></script>
        <script src="js/main.js"></script>
    </body>
    <script>
        appcan.ready(function() {
            var latitude=getStorage("shoplat");
            var longtitude=getStorage("shoplon");
            var divtop = $$("header").offsetHeight;//设置地图距离头部的距离、、、
            var h = $$("content").offsetHeight;//设置地图的高
            var w = $$("content").offsetWidth;//设置地图的宽
            setTimeout(function(){
                uexBaiduMap.open(0,divtop,w,h,longtitude,latitude);//打开百度地图，设置中心点
                markInfo ='[{"id":"0001","longitude":"'+longtitude+'","latitude":"'+latitude+'","icon":"res://css/image/loc.png"}]';//在中心点添加标志
                uexBaiduMap.addMarkersOverlay(markInfo);//在地图上增加标志
                uexBaiduMap.setZoomLevel(16); //把地图放到一定级别；  
            },1000)       
        });
        appcan.button(".nav-btn", "btn-act", function() {
            appcan.window.close(-1);
        })

    </script>
</html>